package com.qf.common.core.utils;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * --- 缘分让我们相遇乱世以外 ---
 *
 * @author SJY
 * 2024/12/31
 */
public class DateUtils {
    /**
     * 根据LocalDate进行格式化操作
     */
    public static String formatLocalDate(LocalDate localDate, String format){
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(format);
        return dateTimeFormatter.format(localDate);
    }
}
